{{{ template "web/layouts/header.html" .}}}

<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">用户注册</div>

                <div class="panel-body">
                    <form class="form-horizontal formAjax" method="POST" action="/register">
{{{ .xsrf_html }}}
    <div class="form-group">
                            <label for="name" class="col-md-4 control-label">用户名</label>

                            <div class="col-md-6">
                                    <input id="name" type="text" class="form-control" name="name" value="" required autofocus>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="email" class="col-md-4 control-label">E-Mail 地址</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control" name="email" value="" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="password" class="col-md-4 control-label">密 码</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control" name="password" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="password-confirm" class="col-md-4 control-label">重复密码</label>

                            <div class="col-md-6">
                                <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="captcha" class="col-md-4 control-label">验证码</label>

                            <div class="col-md-6" style="text-align: center;">
                                <input  class="form-control" name="captcha" value="" >
                                <input id="captchaId" type="hidden" name="captchaId" value="{{{ .CaptchaId }}}" >
                                <img id="captcha" class="thumbnail captcha" src="/captcha/{{{ .CaptchaId }}}.png" onclick="captchaReload()" title="点击图片重新获取验证码">
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <button type="submit" class="btn btn-primary">
                                    注册 <i class="glyphicon glyphicon-arrow-right"></i>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{{{ template "web/layouts/footer.html" .}}}